#ifndef HTTPSERVER_H
#define HTTPSERVER_H
#include <QTcpServer>
#include <QTcpSocket>
#include <QObject>

class httpserver
{
    Q_OBJECT
public:
    httpserver();
public slots:
    void onReadyRead();
    void connection();
    void onDisconnected();

private:
    qint64 bytesAvailable() const;
    QTcpServer *server;
    QList<QTcpSocket*> tcpSktList;//用来存储所有客户端socket的链表
};

#endif // HTTPSERVER_H
